package com.neoharvest.smartagri.decorator;

import com.neoharvest.smartagri.model.AgriculturalMachine;

public abstract class MachineDecorator implements AgriculturalMachine {
    protected AgriculturalMachine decoratedMachine;

    public MachineDecorator(AgriculturalMachine decoratedMachine) {
        this.decoratedMachine = decoratedMachine;
    }

    @Override
    public void start() {
        decoratedMachine.start();
    }

    @Override
    public void stop() {
        decoratedMachine.stop();
    }

    @Override
    public void executeTask() {
        decoratedMachine.executeTask();
    }

    @Override
    public String getStatus() {
        return decoratedMachine.getStatus();
    }
}